diff options
Diffstat (limited to 'app/[lng]/partners/pq/page.tsx')
| -rw-r--r-- | app/[lng]/partners/pq/page.tsx | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/app/[lng]/partners/pq/page.tsx b/app/[lng]/partners/pq/page.tsx new file mode 100644 index 00000000..8ad23f6e --- /dev/null +++ b/app/[lng]/partners/pq/page.tsx @@ -0,0 +1,39 @@ +import { getServerSession } from "next-auth" +import { authOptions } from "@/app/api/auth/[...nextauth]/route" +import * as React from "react" +import { Shell } from "@/components/shell" +import { Skeleton } from "@/components/ui/skeleton" +import { getPQDataByVendorId } from "@/lib/pq/service" +import { PQInputTabs } from "@/components/pq/pq-input-tabs" + + +export default async function PQInputPage() { + // 세션 + const session = await getServerSession(authOptions) + // 예: 세션에서 vendorId 가져오기 + // const vendorId = session?.user.companyId + const vendorId = 17 // 임시 + const idAsNumber = Number(vendorId) + + // 1) 서버에서 PQ 데이터 조회 (groupName별로 묶인 구조) + const pqData = await getPQDataByVendorId(idAsNumber) + + return ( + <Shell className="gap-2"> + <div className="space-y-2"> + <h2 className="text-2xl font-bold tracking-tight"> + Pre-Qualification Check Sheet + </h2> + <p className="text-muted-foreground"> + PQ에 적절한 응답을 제출하시기 바랍니다. 진행 중 문의가 있으면 담당자에게 연락바랍니다. + </p> + </div> + + {/* 클라이언트 탭 UI 로드 (Suspense는 여기서는 크게 필요치 않을 수도 있음) */} + <React.Suspense fallback={<Skeleton className="h-7 w-52" />}> + <PQInputTabs data={pqData} vendorId={idAsNumber} /> + </React.Suspense> + + </Shell> + ) +}
\ No newline at end of file |
